
export function debounce(handler, delay) {
	let timer = null;
	return function () {
		let _self = this, _arg = arguments;
		clearTimeout(timer);
		timer = setTimeout(function () {
			handler.apply(_self, _arg);
		}, delay)
	}
}